package han.thread;

import java.util.concurrent.*;

/**
 * @author: Han
 * @date: 2018/8/10 10:06
 * @dscription: 定制线程池
 */
public class CustomThread extends ThreadPoolExecutor {
    /**
     * 最小30个线程,最大50个
     */
    public CustomThread() {
        super(30, 50, Long.MAX_VALUE, TimeUnit.SECONDS, new ArrayBlockingQueue<>(50));
    }
}
